package com.ms.auction.goods.feign;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.ms.auction.common.module.customer.FollowRecord;
import com.ms.auction.common.module.goods.AuctionGoods;
import com.ms.auction.common.module.goods.com.*;
import com.ms.auction.utils.tools.Paging;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

@FeignClient("auction-goods-server")
public interface IAuctionGoodsService {

    /**
     * 查询拍品详情
     * @param auctionGoods
     * @return AuctionGoodsExt
     */
    @PostMapping("/auctionGoods/getGoodsDetailById")
    AuctionGoodsExt getGoodsDetailById(AuctionGoods auctionGoods);

    /**
     * 详情页中我的出价
     * @param auctionGoods
     * @return
     */
    @PostMapping("/auctionGoods/getMarkupRecord")
    List<MyRecord> getMarkupRecord(AuctionGoods auctionGoods);

    /**
     * 客户添加或取消关注
     * @param followRecord
     * @return
     */
    @PostMapping("/auctionGoods/addFollow")
    String  addFollow(FollowRecord followRecord);

    /**
     * 详情页中已拍下客户信息
     * @param goodsId
     * @return
     */
    @PostMapping("/auctionGoods/getSuccessPat")
    AlreadyTake getSuccessPat(Integer goodsId);


    /**
     * 查询正在拍卖的拍品
     * @param homeReceive
     * @return
     */
    @PostMapping("/auctionGoods/proceedAuctionGoods")
    List<ProceeTre> proceedAuctionGoods(HomeReceive homeReceive);

    /**
     * 查询拍场信息
     * @param paging
     * @return
     */
    @PostMapping("/auctionField/getAuctionField")
    List<FieldRet> getAuctionField(Paging paging);

    /**
     * 查询某个拍场的拍品
     * @param homeReceive
     * @return
     */
    @PostMapping("/auctionField/getAuctionFieldOfGoods")
    List<ProceeTre> getAuctionFieldOfGoods(HomeReceive homeReceive);
}
